import store from '@/store'

export default {
  methods: {
    showTen() {
      return '我是大壮'
    },
    // 权限测试
    dz(name) {
      // 三元表达式，避免退出登录时报错
      const xz = store.state.user.userInfo.roles.points ? store.state.user.userInfo.roles.points : []
      return xz.includes(name)
    }
  }
}
